from tkinter import *

root = Tk()
root.geometry("500x500")

x=int(input())

y=int(input())

a=int(input())

canvas = Canvas(bg="white", width=500, height=500)
canvas.pack(anchor=CENTER, expand=1)

canvas.create_rectangle (x * a, y * a, (x+30) * a, (y+30) * a, fill="red", outline="black")

canvas.create_rectangle (x * a, (y+30) * a, (x+30) * a, (y+60) * a, fill="red", outline="black")

canvas.create_rectangle ((x+30) * a, (y+30) * a, (x+60) * a, (y+60) * a, fill="red", outline="black")

canvas.create_rectangle ((x+30) * a, (y+60) * a, (x+60) * a, (y+90) * a, fill="red", outline="black")


root.mainloop()



